package data.controller.send
{
	import base.net.NetFactory;
	import base.net.socket.packet.SocketSendablePacket;

	public class DataSendBase
	{
		public function DataSendBase()
		{
		}
		
		/**
		 *发送数据 
		 * @param socketSendablePacket 要发送的数据包
		 * @param connectionName 连接名称
		 */		
		public function send(socketSendablePacket:SocketSendablePacket, connectionName:String="default"):void
		{
			NetFactory.Instance.socketController.sendPacket(socketSendablePacket, connectionName);
		}
	}
}